﻿using FluentNHibernate.Mapping;
using nsadv.Statistic.Domain;

namespace nsadv.Statistic.Repository.NHibernate.Config.Maps
{
	public class BannerMap : ClassMap<Banner>
	{
		public BannerMap()
		{
			Not.LazyLoad();
			Table("Banners");
			Id(x => x.Id)
				.Length(50);
				//.GeneratedBy.Custom<Utils.IdentifierGenerator>();
			Map(x => x.Name);
			References<Campaign>(x => x.Campaign)
				.Column("CampaignId");
			Map(x => x.IsTest);
		}
	}
}
